﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace iTaskService.Models
{
    public class Account
    {
        public int AccountID { get; set; }
        public String Name { get; set; }
        public String Email { get; set; }
        public String Password { get; set; }
        public int TimeToDelete { get; set; }
        public bool ShowCompleteTasks { get; set; }
        public bool ShowOverdueTask { get; set; }
        public Category DefaultCategory { get; set; }
        public Project DefaultProject { get; set; }
        public ProcessStatus DefaultProjectStatus { get; set; }
        public int ReminderPeriod { get; set; }

        public List<Project> Projects { get; set; }
        public List<Category> Categories { get; set; }

        public override string ToString()
        {
            return "Acc:" + Name;
        }
    }

    //use for offline
    public class OfflineAccount
    {
        public bool IsActivevate { get; set; }
        public Account Account { get; set; }
        public DateTime LastSync { get; set; }
        public int TimeToDelete { get; set; }
        public bool ShowCompleteTasks { get; set; }
        public bool ShowOverdueTask { get; set; }
        public Category DefaultCategory { get; set; }
        public Project DefaultProject { get; set; }
        public ProcessStatus DefaultProjectStatus { get; set; }
        public int ReminderPeriod { get; set; }

        public List<Project> Projects { get; set; }
        public List<Category> Categories { get; set; }

    }
}